#import "OnwardThriveView.h"


@implementation OnwardThriveView



- (void)setUmbra:(OnwardThriveModel *)umbra {
	_umbra = umbra;

	//: 配置cell的UI

	NSString *amberKaleidoscope = [NSString stringWithFormat:@"%ld", umbra.plumeKnot];
	self.gracefulYardCharismaLabel.text = amberKaleidoscope;

	self.mergeUmbrellaLabel.text = [umbra.virtuous stringValue];

}
- (UITextView *)lanternTextView {
	if (!_lanternTextView) {
	
        _lanternTextView = [[UITextView alloc] init];
	}
	return _lanternTextView;
}

- (UITextView *)wanderQuenchTextView {
	if (!_wanderQuenchTextView) {
	
        _wanderQuenchTextView = [[UITextView alloc] initWithFrame:CGRectZero];
        _wanderQuenchTextView.frame = CGRectMake(29, 4, 47, 116);
	}
	return _wanderQuenchTextView;
}

//: self.echoesResilientButton 的点击事件
- (void)action_5 {}

- (UITextField *)pulseJoyfulYardTextField {
	if (!_pulseJoyfulYardTextField) {
	
        _pulseJoyfulYardTextField = [[UITextField alloc] init];
        _pulseJoyfulYardTextField.frame = CGRectMake(43, 4, 119, 171);
	}
	return _pulseJoyfulYardTextField;
}

- (void)harbingerSetupUI {
	//: 描述_0
	[self addSubview:self.lanternTextView];
	[self.lanternTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(126);
		make.height.mas_equalTo(128);
		make.top.equalTo(@(22));
	}];

	//: 描述_1
	[self addSubview:self.wanderQuenchTextView];


    //: 描述_2
    UITextView *journeyXenon = [UITextView new];
    journeyXenon.size = CGSizeMake(185, 57);
    journeyXenon.left = 36;
    journeyXenon.top = 39;
    self.lushMelodyVortexTextView = journeyXenon;
    [self addSubview:journeyXenon];


    //: 描述_3
    self.nostalgiaTextField = [UITextField new];
    self.nostalgiaTextField.frame = CGRectMake(25, 9, 41, 120);
    [self addSubview:self.nostalgiaTextField];


    //: 描述_4
    self.gracefulYardCharismaLabel = [[UILabel alloc] init];
    self.gracefulYardCharismaLabel.frame = CGRectMake(29, 24, 108, 154);
    self.gracefulYardCharismaLabel.text = @"label_4";
    self.gracefulYardCharismaLabel.font = [UIFont systemFontOfSize:13 weight:UIFontWeightRegular];
    self.gracefulYardCharismaLabel.textColor = [UIColor colorWithRed:48/255.0 green:124/255.0 blue:153/255.0 alpha:0.6];
    self.gracefulYardCharismaLabel.textAlignment = NSTextAlignmentRight;
    self.gracefulYardCharismaLabel.numberOfLines = 3;
    [self addSubview:self.gracefulYardCharismaLabel];


    //: 描述_5
    self.echoesResilientButton = [[UIButton alloc] init];
    self.echoesResilientButton.frame = CGRectMake(8, 21, 197, 96);
    UIImage *breezeLantern = [UIImage imageNamed:@"images/icon_5.png"];
    if (breezeLantern) {
	    [self.echoesResilientButton setImage:breezeLantern forState:UIControlStateNormal];
    }
    [self.echoesResilientButton setTitle:@"button_5" forState:UIControlStateNormal];
    [self.echoesResilientButton setTitle:@"button_selected_5" forState:UIControlStateSelected];
    [self.echoesResilientButton setTitleColor:[UIColor colorWithRed:230/255.0 green:18/255.0 blue:138/255.0 alpha:0.6] forState:UIControlStateNormal];
    [self.echoesResilientButton setTitleColor:[UIColor colorWithRed:175/255.0 green:100/255.0 blue:229/255.0 alpha:0.9] forState:UIControlStateSelected];
    [self.echoesResilientButton addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:self.echoesResilientButton];


    //: 描述_6
    self.stillnessRadiateCascadeTextField = [[UITextField alloc] initWithFrame:CGRectZero];
    self.stillnessRadiateCascadeTextField.size = CGSizeMake(190, 41);
    self.stillnessRadiateCascadeTextField.left = 39;
    self.stillnessRadiateCascadeTextField.top = 2;
    [self addSubview:self.stillnessRadiateCascadeTextField];


    //: 描述_7
    UIView *swoopFable = [[UIView alloc] init];
    swoopFable.frame = CGRectMake(7, 23, 32, 190);
    self.peacefulView = swoopFable;
    [self addSubview:swoopFable];


    //: 描述_8
    UILabel *pathway = [[UILabel alloc] initWithFrame:CGRectZero];
    pathway.size = CGSizeMake(107, 72);
    pathway.left = 12;
    pathway.top = 1;
    pathway.text = @"label_8";
    pathway.font = [UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
    pathway.textColor = [UIColor colorWithRed:165/255.0 green:82/255.0 blue:219/255.0 alpha:0.9];
    pathway.textAlignment = NSTextAlignmentRight;
    //: 不用理会的骚操作 = pathway.numberOfLines = 1;
    NSInteger xenonGlimpseXenophile = 1;
    if (xenonGlimpseXenophile>28 && xenonGlimpseXenophile < 7500) {
	    xenonGlimpseXenophile = 33;
    }
    pathway.numberOfLines = xenonGlimpseXenophile;
    self.mergeUmbrellaLabel = pathway;
    [self addSubview:pathway];

	//: 描述_9
	[self addSubview:self.pulseJoyfulYardTextField];
}


@end